package org.dromara.demo.domain.dto;

import jakarta.validation.constraints.NotBlank;
import java.io.Serial;
import java.io.Serializable;

/**
 * 货物明细表单数据传输对象
 */
public class CargoItemFormDto implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 货物类型
     */
    @NotBlank(message = "货物类型不能为空")
    private String type;

    /**
     * 重量(斤)
     */
    @NotBlank(message = "重量不能为空")
    private String weight;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }
}